home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / examples / SP2MPI / Makefile
Makefile  |  1997-07-22  |  1KB  |  49 lines

  1. #
  2. # $Id: Makefile,v 1.7 1997/07/02 17:52:25 pvmsrc Exp $
  3. #
  4. #
  5. PVMDIR      =   ../..
  6.  
  7. SDIR        =   $(PVMDIR)/examples
  8.  
  9. CONFFILE    =   $(PVMDIR)/conf/$(PVM_ARCH).def
  10.  
  11. LIBDIR      =   $(PVMDIR)/lib/$(PVM_ARCH)
  12.  
  13. include ${CONFFILE}
  14.  
  15. #### Example programs that can be built by ../Makefile.aimk
  16.  
  17. EXAMPLES =     hello hello_other \
  18.             master1 slave1 fmaster1 fslave1 \
  19.             spmd fspmd \
  20.             dbwtest ibwtest pbwtest rbwtest \
  21.             timing timingh timing_slave \
  22.             hitc hitc_slave \
  23.             gexample fgexample \
  24.             gmbi \
  25.             lmbi
  26.  
  27. HEXAMPLES = helloh \
  28.             master1h \
  29.             timingh \
  30.             gexampleh fgexampleh \
  31.             gmbih \
  32.             hitch
  33. #### Targets that are NOT example programs but are recognized by
  34. #  ../Makefile.aimk
  35.  
  36. AIMKTARGETS = default all c-all f-all hostprogs clean 
  37.  
  38. #### How to build programs using ../Makefile.aimk. Notice that 
  39. #          PVMLIB and PVMHLIB are set for MPPs (lpvm3pe, lpvm3, respectively). 
  40. #          Hence the default examples are built for MPP nodes.
  41.  
  42. ${EXAMPLES}:
  43.     make -f $(CONFFILE) PVMLIB=-lpvm3pe PVMHLIB=-lpvm3 FORT=${NODEFORT}\
  44.         CC=${NODECC} -f $(SDIR)/Makefile.aimk $@ 
  45.  
  46. ${HEXAMPLES} ${AIMKTARGETS}:
  47.     make -f $(CONFFILE) PVMLIB=-lpvm3pe PVMHLIB=-lpvm3 FORT=${FORTRAN}\
  48.         CC=${CC} -f $(SDIR)/Makefile.aimk $@ 
  49.